package com.gfxy.modules.dbcenter.service.impl;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.gfxy.modules.dbcenter.entity.Department;
import com.gfxy.modules.dbcenter.mapper.DepartmentMapper;
import com.gfxy.modules.dbcenter.service.IDepartmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author: lijixin 2021/6/10 8:42 上午
 */
@Service
public class DepartmentServiceImpl implements IDepartmentService {

    @Autowired
    private DepartmentMapper departmentMapper;

    @Override
    public List<Department> getAllDepartment() {

        List<Department> result = departmentMapper.queryDepartmentOneLevel();
        return result;
    }
}
